http://technotip.com/7016/c-program-to-convert-octal-number-to-decimal-number-using-while-loop/ Lets write a C program to convert a number from Octal number system(base 8) to Decimal number system(base 10), using while loop. Expected Output for the Input User Input: Enter an Octal Number 24 Output: Decimal Equivalent of 24 is 20. If user enters num = 24. ( pow(8, 1) x 2 ) + ( pow(8, 0) x 4) = (8 x 2) + (1 x 4) = 16 + 4 = 20 So Decimal equivalent of Octal number 24 is 20. C Programming Interview / Viva Q&A List http://technotip.com/6378/c-programming-interview-viva-qa-list/ C Programming: Beginner To Advance To Expert http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/